﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Data.Entity;
using System.Windows.Shapes;
using BlueHarvestSnippetGenerator.Pages;
using DataContextLayer;

namespace BlueHarvestSnippetGenerator
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>

    public enum PageName
    {
        Welcome,
        UserProfilePage,
        Achievement,
        TutorialPage,
        TutorialChoice,
        SnippetPage,
        SnippetChoice,
    };

	public partial class MainWindow : Window
	{
	    private const string MAIN_TITLE = "Blue Harvest";

	    private OnAppStartup _test;

	    public MainWindow()
		{
			InitializeComponent();

            //Database.SetInitializer<DclContext>(new ContactsInitialzer());
            
		    pageHandler.NavigationService.PageNav(PageName.Welcome);

            Title = MAIN_TITLE;

            
		}

        private void WindowInitialized(object sender, EventArgs e)
        {
            DatabaseHelper.InitDB();
            _test = new OnAppStartup();
            _test.CreateDirectorysForApp();
            //test.ScanDirectoryForNewLanguages();
            
        }

        private void WindowLoaded(object sender, RoutedEventArgs e)
        {
        //    MessageBox.Show(test.Message);
        }


	}	
}
